package com.vasthu.api.domain;

import com.vasthu.gui.VstTableItemSelectable;

public class Category implements VstTableItemSelectable {

    private long catId;
    private String catName;
    private String catDescription;
    private int status;

    public long getCategoryId() {
        return catId;
    }

    public String getCategoryName() {
        return catName;
    }

    public String getCategoryDescription() {
        return catDescription;
    }

    public int getCategoryStatus() {
        return status;
    }

    public void setCategoryId(long catId) {
        this.catId = catId;
    }

    public void setCategoryName(String catName) {
        this.catName = catName;
    }

    public void setCategoryDescription(String catDescription) {
        this.catDescription = catDescription;
    }

    public void setCategoryStatus(int status) {
        this.status = status;
    }

    public Object getValue(int col) {
        switch (col) {
            case 0:
                return getCategoryName();
            case 1:
                return getCategoryDescription();
            default:
                return new String("");
        }
    }
}